package com.hdax.dm.rest;

import com.hdax.dm.beans.base.image;
import com.hdax.dm.common.api.imageControllerApi;
import com.hdax.dm.service.imageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestParam;

@Service
public class imageRestService implements imageControllerApi {

    @Autowired
    private imageService imageService;

    public image image(@RequestParam("targetId")Long targetId,
                       @RequestParam("type")Long type,
                       @RequestParam("category")Long category){
        return imageService.image(targetId, type, category);
    }

//    @Override
//    public image isRecommend(Long targetId) {
//        return imageService.;
//    }
}
